package com.daekwang.service;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;

import com.daekwang.abstraction.Board;
import com.daekwang.domain.BoardVO;

public class BoardService implements Board{

	private SqlSessionTemplate template;

	public void setTemplate(SqlSessionTemplate template) {
		this.template = template;
	}
	
	@Override
	public List<BoardVO> getContentList(BoardVO vo) {
		return template.selectList("com.daekwang.sqlMap.board.getContentList", vo);
	}

	public int countContent(BoardVO vo) {
		return template.selectOne("com.daekwang.sqlMap.board.countContent", vo);
	}
}
